package com.marry.multidatasource.controller;

import com.marry.multidatasource.model.bd.Realestateright;
import com.marry.multidatasource.service.RealestaterightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ml
 * @create 2018-01-09--17:02
 */
@RestController
public class RealestaterightController {

    @Autowired
    private RealestaterightService realestaterightService;

    @GetMapping("getRealestaterightById")
    public Realestateright getRealestaterightById(String keyId){
        return realestaterightService.getRealestaterightById(keyId);

    }
}
